<template>
    <div class="assignWords">
        <div class="navContent">
            <div class="backcontent" @click="handleBack">
                <i class="el-icon-back"></i>
                <div>返回</div>
            </div>

            <div class="title">
                布置单词
            </div>
        </div>


        <div class="tipBox">
            <div class="btn">
                立即布置
            </div>

            <div class="tipBox_right">
                <div>
                    1. 如何布置单词？ 点击标签会展开其下级标签，依次选择标签后再选择要布置的学生，最后点击右上角的“布置单词”就可以了。
                </div>
                <div>
                    2. 如何查看单词？ 依次选择标签后点击右边的“查看单词”，就可以看到所选标签下含有哪些单词了。
                </div>

            </div>
        </div>


        <div class="selectWord">

            <div class="lableBox">
                <div class="lable_left">
                    <div>选择单词：</div>

                    <div class="">

                    </div>

                </div>

                <div class="lable_right">
                    <div class="showWord">查看单词</div>
                    <el-checkbox v-model="lableChecked">全选</el-checkbox>
                    <div class="btn">确定</div>
                </div>

            </div>

            <div class="heng"></div>

        </div>



        <div class="studentContent">
            <div class="classListcontent">
                <div class="title">
                    选择学生：
                </div>

                <div class="list_content">
                    <div class="classNameitem" v-for="(item, index) in studentData" :key="index">
                        {{ item.className }}
                    </div>
                </div>
            </div>
            <div class="heng"></div>

            <div class="studentListcontent">
                <div class="studentitem" v-for="(studentitem, studentindex) in studentData[0].studentList"
                    :key="studentindex">
                    <img class="avatar" src="@/static/image/logo.png" alt="" srcset="">
                    <div class="studentmessage">
                        <div class="studentName">
                            {{ studentitem.name }}
                        </div>
                        <div class="studentmoblie">
                            {{ studentitem.moblie }}
                        </div>
                    </div>
                </div>
            </div>


        </div>


    </div>
</template>

<script>
export default {
    data() {
        return {
            lableChecked: true,
            studentData: [{ className: 'L2-99', studentList: [{ name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }] },
            { className: '精英班', studentList: [{ name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }, { name: "小明", moblie: "18456987456" }] }]
        }
    },
    methods: {
        handleBack() {
            this.$router.go(-1)
        },
    }
}
</script>
<style scoped lang="scss">
.assignWords {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;

    .navContent {
        display: flex;
        align-items: center;
        font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
        font-weight: 400;
        font-size: 14px;
        color: #777777;
        line-height: 16px;

        .backcontent {
            display: flex;
            align-items: center;
            cursor: pointer;

        }

        .title {
            margin-left: 30px;
        }
    }

    .tipBox {

        width: 100%;
        height: 72px;
        background: #FFFFFF;
        border-radius: 4px 4px 4px 4px;
        margin-top: 16px;
        padding: 16px;
        box-sizing: border-box;
        display: flex;
        align-items: center;

        .btn {
            width: 140px;
            height: 40px;
            background: #4BA840;
            border-radius: 4px 4px 4px 4px;
            font-family: PingFang SC, PingFang SC;
            font-weight: 500;
            font-size: 12px;
            color: #FFFFFF;
            line-height: 40px;
            text-align: center;
            cursor: pointer;
        }

        .tipBox_right {
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 10px;
            color: rgba(0, 0, 0, 0.4);
            line-height: 20px;
            margin-left: 38px;
        }

    }



    .selectWord {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        background-color: #ffffff;
        margin-top: 16px;

        .lableBox {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .lable_left {
                display: flex;
                align-items: center;
                font-family: PingFang SC, PingFang SC;
                font-weight: 500;
                font-size: 14px;
                color: #333333;
                line-height: 16px;
                text-align: left;

            }

            .lable_right {
                display: flex;
                align-items: center;

                .showWord {
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 400;
                    font-size: 12px;
                    color: #3FB9E2;
                    line-height: 14px;
                    margin-right: 13px;
                    cursor: pointer;
                }

                .btn {
                    width: 108px;
                    height: 40px;
                    background: #EAF9E8;
                    border-radius: 4px 4px 4px 4px;
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 400;
                    font-size: 16px;
                    color: #4BA840;
                    line-height: 40px;
                    text-align: center;
                    margin-left: 13px;
                    cursor: pointer;
                }

            }
        }

        .heng {
            width: 100%;
            height: 1px;
            background-color: #EEEEEE;
            margin-top: 13px;
        }
    }


    .studentContent {
        margin-top: 16px;
        width: 100%;
        min-height: 360px;
        background: #FFFFFF;
        border-radius: 4px 4px 4px 4px;
        padding: 16px;
        box-sizing: border-box;

        .classListcontent {
            display: flex;
            align-items: center;

            .title {
                font-family: PingFang SC, PingFang SC;
                font-weight: 500;
                font-size: 14px;
                color: #333333;
                line-height: 16px;
            }

            .list_content {
                display: flex;
                align-items: center;

                .classNameitem {
                    width: 110px;
                    height: 37px;
                    border-radius: 4px 4px 4px 4px;
                    border: 1px solid #AAAAAA;
                    font-family: PingFang SC, PingFang SC;
                    font-weight: 400;
                    font-size: 14px;
                    color: #AAAAAA;
                    line-height: 37px;
                    text-align: center;
                    margin-right: 10px;
                    cursor: pointer;
                }
            }
        }

        .heng {
            width: 100%;
            height: 1px;
            background-color: #EEEEEE;
            margin: 16px 0;
        }

        .studentListcontent {
            width: 100%;
            display: flex;
            flex-wrap: wrap;

            .studentitem {
                width: 217px;
                height: 70px;
                border-radius: 4px 4px 4px 4px;
                border: 1px solid #AAAAAA;
                display: flex;
                align-items: center;
                padding: 10px;
                box-sizing: border-box;
                margin-left: 13px;
                margin-bottom: 16px;
                cursor: pointer;

                .avatar {
                    width: 44px;
                    height: 44px;
                    border-radius: 44px;
                }

                .studentmessage {
                    margin-left: 10px;

                    .studentName {
                        font-family: PingFang SC, PingFang SC;
                        font-weight: 400;
                        font-size: 12px;
                        color: #333333;
                        line-height: 20px;
                    }

                    .studentmoblie {
                        font-family: PingFang SC, PingFang SC;
                        font-weight: 400;
                        font-size: 12px;
                        color: #777777;
                        line-height: 20px;
                    }
                }
            }
        }


    }

}

::v-deep .el-checkbox__input.is-checked+.el-checkbox__label {
    color: #4BA840;
}

::v-deep .el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #4BA840 !important;
    border-color: #4BA840 !important;
}
</style>